#!/bin/bash

WDIR=$(pwd)
mkdir /usr/share/Lucale
cp -r $WDIR/{Lucale,usu,usudo} /usr/bin
cp -r $WDIR/{locale.gen.old,locale-env,tmp-gen,main} /usr/share/Lucale
cp -r $WDIR/locale /usr/share/Lucale
cp -r $WDIR/Lucale.desktop /usr/share/applications
chmod +x /usr/bin/{Lucale,usudo,usu}
chmod +x /usr/share/Lucale/main
ln -sf /usr/bin/{Lucale,usudo,usu} /usr/sbin
if [ ! -d "/etc/locale.gen.old" ]; then
    cp -r /etc/locale.gen /etc/locale.gen.old
fi
